cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(rotation_kdtree)

set(CMAKE_BUILD_TYPE Release)
find_package(PCL REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_executable (${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/rotation_kdtree.cpp)
# target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
target_include_directories(${PROJECT_NAME} PUBLIC ${PCL_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIR})
target_link_directories(${PROJECT_NAME} PUBLIC ${PCL_LIBRARY_DIRS})
target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES})